Optimal. Leaf size=26 \[ \frac {1}{2} x^2 (-a-b x)^{-n} (a+b x)^n \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.00, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {23, 30} \[ \frac {1}{2} x^2 (-a-b x)^{-n} (a+b x)^n \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 23
Rule 30
Rubi steps
\begin {align*} \int x (-a-b x)^{-n} (a+b x)^n \, dx &=\left ((-a-b x)^{-n} (a+b x)^n\right ) \int x \, dx\\ &=\frac {1}{2} x^2 (-a-b x)^{-n} (a+b x)^n\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 26, normalized size = 1.00 \[ \frac {1}{2} x^2 (-a-b x)^{-n} (a+b x)^n \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.88, size = 9, normalized size = 0.35 \[ \frac {1}{2} \, x^{2} \cos \left (\pi n\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.20, size = 5, normalized size = 0.19 \[ \frac {1}{2} \, x^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.00, size = 25, normalized size = 0.96 \[ \frac {x^{2} \left (-b x -a \right )^{-n} \left (b x +a \right )^{n}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.78, size = 8, normalized size = 0.31 \[ \frac {1}{2} \, \left (-1\right )^{n} x^{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.97, size = 24, normalized size = 0.92 \[ \frac {x^2\,{\left (a+b\,x\right )}^n}{2\,{\left (-a-b\,x\right )}^n} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 8.36, size = 19, normalized size = 0.73 \[ \frac {x^{2} \left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________